.textRevealContainer {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 1.5em;
text-align: center;
}
.textReveal {
overflow: hidden;
animation: textRevealAnim 2s ease 0.5s forwards;
}
.textReveal > div {
padding: 8px 16px;
transform: translateX(100%);
border-left: 2px solid red;
overflow: hidden;
animation: textRevealAnim 2s ease 0.5s forwards,
borderOpacityAnim 2s ease 0.5s forwards;
}
.textReveal > div > div {
transform: translateX(-100%);
animation: textRevealAnim 2s ease 0.5s forwards;
}
@keyframes textRevealAnim {
to {
transform: translateX(0);
}
}
@keyframes borderOpacityAnim {
50% {